package com.livedocumentation.client.facebook;

import com.google.gwt.user.client.ui.HTML;

public class FacebookImage extends HTML {

	public static String getString(String id, String name) {

		return "<a href='http://facebook.com/" + id + "' target='_blank'>"
				+ "<img src='https://graph.facebook.com/" + id
				+ "/picture' title='" + name + "'></a>";
	}

	public FacebookImage(String id, String name) {

		this.setHTML(getString(id, name));
	}
}
